package cn.wolfcode.domain;

import com.alibaba.fastjson.JSON;

import java.util.HashMap;

public class Department {
    private Integer id;

    private String name;

    private String sn;


    public String getJson() {
        HashMap<Object,Object> map=new HashMap<>();
        map.put("id",id);
        map.put("name",name);
        map.put("sn",sn);
        return JSON.toJSONString(map);
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSn() {
        return sn;
    }

    public void setSn(String sn) {
        this.sn = sn;
    }
}